//App打包后Api地址（打包前需要手动修改）
let loginUrl = window.localStorage.getItem('login-url');
let curOrigin = window.location.origin; // 当前url的域名
let appUrl = (window.location.protocol === 'http:' || window.location.protocol === 'https:') ? curOrigin : loginUrl ? loginUrl : 'https://wethink180.cyberwisdom.net.cn';
window.localStorage.setItem('login-url', appUrl);

//考试自动提交时间（毫秒）
let examAutoSubmitTime = 30 * 1000;
//开启全局水印，默认开启
let setWaterMark = true;
//app标识
let appInd = process.env.NODE_ENV === 'production_app';
/**
 * 导出Api地址和扩展Api方法
 */
export {
    appUrl,
    examAutoSubmitTime,
    setWaterMark,
    appInd
}
